package com.lb.request;

/**
 * @author: zhangjun
 * @date: 2024/09/27
 */
public class RequestTest {
    public static void main(String[] args) {
        BrowserController browserController = new BrowserController();
        try {
            browserController.navigateTo("https://www.ctb988.com");
            System.out.println("Title: " + browserController.getTitle());
            System.out.println("Cookie: " + browserController.getCookie());
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            browserController.close();
        }
    }
}
